package stack;

import java.util.Stack;

public class Main {
    public static void main(String[] args) {
        MyStack stack = new MyStack();
        stack.push(5);
        stack.push(9);
        stack.push(4);
        System.out.println(stack.pop());
        System.out.println(stack.peek());
        stack.printStack();

    }
}
